<template>
  <div>123</div>
  <button @click="debouncedClick">防抖</button>
</template>

<script>
import _ from 'lodash';
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'hello'
    }
  },
  created() {
    this.debouncedClick = _.debounce(this.handleClick, 500);
  },
  methods: {
    handleClick () {
      console.log(this);
      console.log(1);
    }
  }
}
</script>
